package com.njbw.design_pattern.struct.bridge.abstractor;

public abstract class DriverManager {

    // 依赖于抽象接口，而不是具体实现
    private Driver driver;

    public Connection getConnection() {
        return this.driver.connect();
    }

    public void register(Driver driver) {
        this.driver = driver;
    }
}
